package com.ffs.game.connection;


import io.netty.channel.Channel;

/**
 * @author ffs80
 * @date 2022/4/4 19:51
 */
public class Session {

    /**
     * 用户id
     */
    private long userId;

    /**
     * channel(netty)
     */
    private Channel channel;

    public void close() {
        channel.close();
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public static void main(String[] args) {
        System.out.println(111);
    }
}
